/**
 * Copyright 2016 JustWayward Team
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.zhuike.novel.app.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @author yuyh.
 * @date 2016/8/4.
 */
public class BookDetail implements Serializable {

    /**
     * "id":239506,
     * "name":"大主宰",
     * "author":"天蚕土豆",
     * "cover":"http://qidian.qpic.cn/qdbimg/349573/2750457/180",
     * "chapterId":"373299513",
     * "chapterName":"第一千五百一十九章一帝一祖战邪神（上）",
     * "chapterCount":"0",
     * "lastestUpdateTime":"373299513",
     * "description":"大千世界，位面交汇，万族林立，群雄荟萃，一位位来自下位面的天之至尊，在这无尽世界，演绎着令人向往的传奇，追求着那主宰之路。<br/>无尽火域，炎帝执掌，万火焚苍穹。<br/>武境之内，武祖之威，震慑乾坤。<br/>西天之殿，百战之皇，战威无可敌。<br/>北荒之丘，万墓之地，不死之主镇天地。<br/>......<br/>少年自北灵境而出，骑九幽冥雀，闯向了那精彩绝伦的纷纭世界，主宰之路，谁主沉浮？<br/>大千世界，万道争锋，吾为大主宰。",
     * "progress":"已完本",
     * "site":"qidian.com"
     **/

    public String id;
    public String author;
    public String name;
    public String cover;
    public String chapterId;
    public String chapterName;
    public String chapterCount;
    private boolean hasCp=true;
    public String lastestUpdateTime;
    public String description;
    public String progress;
    public String site;
    public String words;
    public String aid;
    private CollBookBean collBookBean;
    public CollBookBean getCollBookBean(){
        if (collBookBean == null){
            collBookBean = createCollBookBean();
        }
        return collBookBean;
    }

    public CollBookBean createCollBookBean(){
        CollBookBean bean = new CollBookBean();
        bean.setId(id);
        bean.setAid(aid);
        bean.setName(name);
        bean.setAuthor(author);
        bean.setDescription(description);
        bean.setCover(cover);
        bean.setHasCp(hasCp);
        bean.setUpdated(lastestUpdateTime);
        bean.setChapterName(chapterName);
        return bean;
    }
}
